package com.gem.service.impl;

import com.gem.entity.Admin;
import com.gem.mapper.AdminMapper;
import com.gem.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhang
 * @date 2020/10/7 18:06
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin login(String username, String password) {
        return adminMapper.selectAdminByUsernameAndPassword(username, password);
    }
}
